package org.example.demo01.dao;

import org.example.demo01.pojo.Receipt;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Select;
@Repository("receiptDao")
public interface ReceiptDao {
//添加用户个体信息的方法
@Select("INSERT INTO receipt (name, taxpayer_id, address, phone, bank, account_number, project_name, amount, tax_rate) " +
        "VALUES (#{name}, #{taxpayer_id}, #{address}, #{phone}, #{bank}, #{account_number}, #{project_name}, #{amount}, #{tax_rate})")
 void addReceipt(Receipt receipt);
}
